package com.swu.pad.system.controller;

import java.util.HashMap;
import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.swu.pad.assignment.service.AssignmentService;
import com.swu.pad.system.dto.ResultDto;
import com.swu.pad.system.entity.Dictionary;
import com.swu.pad.system.entity.User;
import com.swu.pad.system.entity.UserAdvice;
import com.swu.pad.system.service.DictionaryService;
import com.swu.pad.system.service.UserAdviceService;

/**
 * Handles requests for the application home page.
 */
@Controller
@RequestMapping(value = "userAdvice")
public class UserAdviceController {
     
	@Autowired
	private UserAdviceService userAdviceService;
	
	//保存建议
	@ResponseBody
	@RequestMapping("/saveUserAdvice")
    public String  saveUserAdvice(UserAdvice userAdvice){
		userAdviceService.saveUserAdvice(userAdvice);
    	return "success";
    }

}
